package com.dao;

import java.util.List;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.po.CourseInfoVO;
@Repository
public class CourseDao {
	@Autowired
	private SqlSessionTemplate sqlTemplate;
	/**
	 * 根据id查找相应课程所对应下的所有信息
	 * @param id
	 * @return
	 */
	public List<CourseInfoVO> findCourse(String id) {
		return sqlTemplate.selectList("course.selectCourseByClassId",id);
	}
	
}
